package com.kuang.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 狂神说
 * @since 2022-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Student对象", description="")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学号")
    @TableId(value = "studentno", type = IdType.AUTO)
    private Integer studentno;

    @ApiModelProperty(value = "密码")
    private String loginpwd;

    @ApiModelProperty(value = "学生姓名")
    private String studentname;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "年级编号")
    private String gradename;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "地址")
    private String address;

    @Version//乐观锁注解
    private Integer version;

    @TableLogic//逻辑删除
    private Integer isDelete;


}
